<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改执法巡查')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-zfxc-edit" th:object="${wcldZfxc}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label">开展日期：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <input name="kzrq" th:value="${#dates.format(wcldZfxc.kzrq, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">工作人员：</label>
                <div class="col-sm-8">
                    <input name="gzry" th:field="*{gzry}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">巡查对象：</label>
                <div class="col-sm-8">
                    <input name="xcdx" th:field="*{xcdx}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">巡查方式：</label>
                <div class="col-sm-8">
                    <input name="xcfs" th:field="*{xcfs}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">巡查重点：</label>
                <div class="col-sm-8">
                    <input name="xczd" th:field="*{xczd}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">发现问题数量：</label>
                <div class="col-sm-8">
                    <input name="fxwtsl" th:field="*{fxwtsl}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">问题的具体表现：</label>
                <div class="col-sm-8">
                    <textarea name="wtjtbx" class="form-control">[[*{wtjtbx}]]</textarea>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">整改措施：</label>
                <div class="col-sm-8">
                    <textarea name="zgcs" class="form-control">[[*{zgcs}]]</textarea>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">整改期限：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <input name="zgqx" th:value="${#dates.format(wcldZfxc.zgqx, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">整改反馈结果：</label>
                <div class="col-sm-8">
                    <input name="zgfkjg" th:field="*{zgfkjg}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">是否回头看：</label>
                <div class="col-sm-8">
                    <div class="radio-box" th:each="dict : ${@dict.getType('sys_yes_no')}">
                        <input type="radio" th:id="${'sfhtk_' + dict.dictCode}" name="sfhtk" th:value="${dict.dictValue}" th:field="*{sfhtk}">
                        <label th:for="${'sfhtk_' + dict.dictCode}" th:text="${dict.dictLabel}"></label>
                    </div>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">备注：</label>
                <div class="col-sm-8">
                    <textarea name="remark" class="form-control">[[*{remark}]]</textarea>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script th:inline="javascript">
        var prefix = ctx + "wcld/zfxc";
        $("#form-zfxc-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-zfxc-edit').serialize());
            }
        }

        $("input[name='kzrq']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='zgqx']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });
    </script>
</body>
</html>